package io.gitee.yaoshanli.engine;

import java.util.HashMap;

/**
 * 工作流中介执行的抽象类
 */
public abstract class JwFlowTaskDeal {
    private String wf_id;       //工作流ID
    private String task_id;     //任务ID
    private String node_id;     //节点ID
    private String oper;        //操作人
    private String ctype;       //工作流类型
    private String action_url;  //执行页面
    private String main_table;  //主表
    private HashMap<String,Object> mapData;  //额外参数

    public String getWf_id() {
        return wf_id;
    }

    public void setWf_id(String wf_id) {
        this.wf_id = wf_id;
    }

    public String getTask_id() {
        return task_id;
    }

    public void setTask_id(String task_id) {
        this.task_id = task_id;
    }

    public String getNode_id() {
        return node_id;
    }

    public void setNode_id(String node_id) {
        this.node_id = node_id;
    }

    public String getOper() {
        return oper;
    }

    public void setOper(String oper) {
        this.oper = oper;
    }

    public String getCtype() {
        return ctype;
    }

    public void setCtype(String ctype) {
        this.ctype = ctype;
    }

    public String getAction_url() {
        return action_url;
    }

    public void setAction_url(String action_url) {
        this.action_url = action_url;
    }

    public String getMain_table() {
        return main_table;
    }

    public void setMain_table(String main_table) {
        this.main_table = main_table;
    }

    public HashMap<String, Object> getMapData() {
        return mapData;
    }

    public void setMapData(HashMap<String, Object> mapData) {
        this.mapData = mapData;
    }

    /**
     *  执行
     * @param wf_id
     * @param task_id
     * @param node_id
     * @param oper
     * @param ctype
     * @param action_url
     * @param main_table
     * @param map
     */
    public abstract void dealTask(String wf_id, String task_id, String node_id, String oper
            , String ctype,String action_url,String main_table,HashMap<String,Object> map);
}
